package cn.iocoder.yudao.framework.pay.core.client.impl.pax.model;

import cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants;
import java.util.Objects;
import lombok.Data;

/**
 * @author cai
 * @date 2024/05/06 14:55
 */
@Data
public class PaxResult<T> {

    private String code;

    private String msg;

    private T data;

    public boolean checkSuccess() {
        return Objects.equals(GlobalErrorCodeConstants.SUCCESS.getCode().toString(), this.getCode());
    }

}
